package name.panitz.ludens.animationGame;

import javax.swing.*;
import java.awt.event.*;

public class DialogFrogger extends MenuFrogger {
	
	private static final long serialVersionUID = 1L;
	JMenu gameMenu = new JMenu("Game");
	JDialog options = new FroggerOptions(this, frogger);

	DialogFrogger() {
		gameMenu.add(new AbstractAction("Preferences") {
			private static final long serialVersionUID = 1L;

			public void actionPerformed(ActionEvent e) {
				options.pack();
				options.setVisible(true);
			}
		});

		gameMenu.add(new AbstractAction("Highscores") {
			private static final long serialVersionUID = 1L;

			public void actionPerformed(ActionEvent e) {

			}
		});

		menuBar.add(gameMenu, 1);

		pack();
	}

	public static void main(String[] args) {
		new DialogFrogger();
	}
}
